import { WereWolfVoteTool } from "@/werewolf/components/voteTool";
import { WereWolfVotePhase } from "@/werewolf/phases/vote";
import { WereWolfPhaseView } from "@/werewolf/phaseView";
import { ScriptRunner } from "@sapi-game/Runner/scriptRunner";

export class VoteClassicView extends WereWolfPhaseView<WereWolfVotePhase> {
    override onAttach(): void {
        this.state.addComponent(WereWolfVoteTool);
        super.onAttach();
    }

    override async runPhaseView(r: ScriptRunner): Promise<void> {
        this.players.title("§e§l投票时间");
        this.players.playSound("random.anvil_use");
        this.state.giveItem();
    }
}
